package com.nimitz.personnel.service.impl;

import com.nimitz.personnel.domain.RiverFactory;
import com.nimitz.personnel.mapper.RiverFactoryMapper;
import com.nimitz.personnel.service.RiverFactoryService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class RiverFactoryImpl implements RiverFactoryService {



    @Autowired
    private RiverFactoryMapper riverMapper;


    @Override
    public List<RiverFactory> getAllRivers() {
        return riverMapper.getAllRivers();
    }

    @Override
    public List<RiverFactory> selectById(Long id) {
        return riverMapper.selectById(id);
    }

    @Override
    public void updateKahunaIdByAreaId(RiverFactory river) {
        riverMapper.updateKahunaIdByAreaId(river);
    }
}
